package cn.jiyun.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 * @TableName fw
 */
@TableName(value ="fw")
@Data
public class Fw implements Serializable {
    private Integer id;

    private String name;

    private String sex;

    private Integer age;

    private String zjhm;

    private String status;

    private String lxhm;

    private String dz;

    private String bh;

    private Date date;

    private String bdsb;

    private String jg;

    private String mz;

    private String tc;

    private String xbs;

    private String qbx;

    private String qtjb;

    private Integer wid;

    private Integer did;

    private Double longitude;
    private Double dimensionality;
    private String department;
    private Integer  BindingState;
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date qjshijian;
    @TableField(exist = false)
    private String address;
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Fw other = (Fw) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getZjhm() == null ? other.getZjhm() == null : this.getZjhm().equals(other.getZjhm()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getLxhm() == null ? other.getLxhm() == null : this.getLxhm().equals(other.getLxhm()))
            && (this.getDz() == null ? other.getDz() == null : this.getDz().equals(other.getDz()))
            && (this.getBh() == null ? other.getBh() == null : this.getBh().equals(other.getBh()))
            && (this.getDate() == null ? other.getDate() == null : this.getDate().equals(other.getDate()))
            && (this.getBdsb() == null ? other.getBdsb() == null : this.getBdsb().equals(other.getBdsb()))
            && (this.getJg() == null ? other.getJg() == null : this.getJg().equals(other.getJg()))
            && (this.getMz() == null ? other.getMz() == null : this.getMz().equals(other.getMz()))
            && (this.getTc() == null ? other.getTc() == null : this.getTc().equals(other.getTc()))
            && (this.getXbs() == null ? other.getXbs() == null : this.getXbs().equals(other.getXbs()))
            && (this.getQbx() == null ? other.getQbx() == null : this.getQbx().equals(other.getQbx()))
            && (this.getQtjb() == null ? other.getQtjb() == null : this.getQtjb().equals(other.getQtjb()))
            && (this.getWid() == null ? other.getWid() == null : this.getWid().equals(other.getWid()))
            && (this.getDid() == null ? other.getDid() == null : this.getDid().equals(other.getDid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getZjhm() == null) ? 0 : getZjhm().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getLxhm() == null) ? 0 : getLxhm().hashCode());
        result = prime * result + ((getDz() == null) ? 0 : getDz().hashCode());
        result = prime * result + ((getBh() == null) ? 0 : getBh().hashCode());
        result = prime * result + ((getDate() == null) ? 0 : getDate().hashCode());
        result = prime * result + ((getBdsb() == null) ? 0 : getBdsb().hashCode());
        result = prime * result + ((getJg() == null) ? 0 : getJg().hashCode());
        result = prime * result + ((getMz() == null) ? 0 : getMz().hashCode());
        result = prime * result + ((getTc() == null) ? 0 : getTc().hashCode());
        result = prime * result + ((getXbs() == null) ? 0 : getXbs().hashCode());
        result = prime * result + ((getQbx() == null) ? 0 : getQbx().hashCode());
        result = prime * result + ((getQtjb() == null) ? 0 : getQtjb().hashCode());
        result = prime * result + ((getWid() == null) ? 0 : getWid().hashCode());
        result = prime * result + ((getDid() == null) ? 0 : getDid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", sex=").append(sex);
        sb.append(", age=").append(age);
        sb.append(", zjhm=").append(zjhm);
        sb.append(", status=").append(status);
        sb.append(", lxhm=").append(lxhm);
        sb.append(", dz=").append(dz);
        sb.append(", bh=").append(bh);
        sb.append(", date=").append(date);
        sb.append(", bdsb=").append(bdsb);
        sb.append(", jg=").append(jg);
        sb.append(", mz=").append(mz);
        sb.append(", tc=").append(tc);
        sb.append(", xbs=").append(xbs);
        sb.append(", qbx=").append(qbx);
        sb.append(", qtjb=").append(qtjb);
        sb.append(", wid=").append(wid);
        sb.append(", did=").append(did);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}
